package com.carb.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 会员等级 (0: 普通, 1: 银卡, 2: 金卡, 3: 至尊)
 */
@Getter
public enum MemberLevel {
    ORDINARY(0, "普通"),
    SILVER(1, "银卡"),
    GOLD(2, "金卡"),
    SUPREME(3, "至尊");

    @EnumValue
    private final int code;
    @JsonValue
    private final String desc;

    MemberLevel(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
